package com.big.app.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.io.Serializable;

/**
 * (TbFoodpay)实体类
 *
 * @author makejava
 * @since 2022-04-21 19:58:45
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_foodpay")
public class FoodPay implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;
    
    private Integer oid;
    
    private Double money;
    
    private String no;
    /** 支付状态 1.未支付WAIT_BUYER_PAY  2.支付成功TRADE_SUCCESS 3.支付关闭TRADE_CLOSED 4.支付完成TRADE_FINISHED*/
    private Integer flag ;
    
    private Date ctime;

    public FoodPay(Integer oid, Double money, String no) {
        this.oid = oid;
        this.money = money;
        this.no = no;
        this.flag = 1;
        this.ctime=new Date();
    }
}

